<template>
  <div>
    <a @click="a" href="http://www.baidu.com">无参数阻止跳转</a>
    <br />
    <a @click="b(10, $event)" href="http://www.baidu.com">有参数阻止跳转</a>
  </div>
</template>

<script>

export default {

  methods: {
    a (e) {
      e.preventDefault()

    },
    b (num, e) {
      e.preventDefault()

    }
  }
}
</script>

<style>
</style>
